package com.dgut.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dgut.dto.ListFormDto;
import com.dgut.dto.StatisticAO;
import com.dgut.dto.UserInfoAndDailyForm;
import com.dgut.pojo.DailyForm;
import com.dgut.pojo.UserInfo;

import java.util.List;
import java.util.Map;

public interface DailyFormService extends IService<DailyForm> {
    //获取某天的表单
    public DailyForm getFormByDate(String username,String date);
    //查询最新一天的数据,并返回填报的天数
    public UserInfoAndDailyForm getLatestFormWithUserInfo(String username);
    //填报当天的信息
    public int chockIn(String username, UserInfo userInfo, DailyForm dailyForm) throws Exception;
    //查询填报情况
    public Page<Map<String,Object>> getFormList(Page<Map<String,Object>> page, ListFormDto listFormDto);
    //获取大数据报表
    public Map<String,List<StatisticAO>> getStatisticForm();
}
